<?php

namespace App\Http\Api\Controllers;

use App\Models\CoUser;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller as BaseController;

class Controller extends BaseController {
    protected $model;
    protected $user_info=[];
    protected $api_token;
	use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
	public function __construct() {
		$this->middleware(['api']);
	}

	public function get_user(){
        if(!empty($this->api_token)){
            $this->model = new CoUser();
            $this->user_info = $this->model->getuser($this->api_token);
        }
    }
}
